<div id="quicksearch">
    <div class="recentsearch">
        <h4>Recent Searches</h4>

            <? 
            $i = 0;
            foreach($search_items as $item) {
            ?>

            <p><a href="<?=site_url('search/recent_searches/'.$i)?>"><?=$item?></a></p>

            <?  
                $i++;
            } 
            ?>

            <p>
                <a class="more" href="#">more...</a> | 
                <a class="more" href="<?=site_url('search/clear_history/'.uri_string())?>">clear search history</a>
            </p>

    </div>
</div>